package com.pozu.new_retail.dao.mapper;

import java.util.HashMap;
import java.util.List;

import com.pozu.new_retail.dao.model.ShoppingCart;
import com.pozu.new_retail.dao.vo.ShoppingCartVo;

public interface ShoppingCartMapper {
	
	public ShoppingCart queryByShoppingCartId(long shoppingCartId);
	
	public int insertShoppingCart(ShoppingCart shoppingCart);
	
	public int updateShoppingCart(ShoppingCart shoppingCart);
	
	public List<ShoppingCartVo> queryByMap(HashMap<String, Object> map);
	
	public List<ShoppingCartVo> queryDetailsByOrderId(String orderId);
	
	public int batchUpdate(List<ShoppingCart> carts);
	
	public List<ShoppingCart> queryByOrderId(String orderId);
	
	public ShoppingCart queryByGoodsExtIdAndUserId(HashMap<String, Object> map);
	
	public int queryMyCountByUserId(HashMap<String, Object> hashMap);
	
	public List<ShoppingCartVo> queryDetailsBySecOrderId(String secOrderId);

}
